<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/2.2.4/jquery.js"></script>
</head>
<body>
    <button onclick="handlerGetData()">请求数据</button>

    <script>
        function handlerGetData() {
            $.ajax({
                url:"http://localhost:8080/user/query",
                success:function(res) {
                    console.log(res);

                }
            })

        }
    </script>
</body>
</html>